package com.fanco.learn_datastruct_leetcode.designpattern.prototype.deepclone;

/**
 * @author qiaowang 2022/2/9
 * 描述
 */
public class Client {
    public static void main(String[] args) throws CloneNotSupportedException {
        DeepProtoType deepProtoType = new DeepProtoType();

        deepProtoType.name = "张三";
        deepProtoType.deepCloneableTarget = new DeepCloneableTarget("ceshi","hahaha");

        DeepProtoType clone = (DeepProtoType)deepProtoType.deepClone();

        System.out.println(clone.deepCloneableTarget.hashCode());
        System.out.println(deepProtoType.deepCloneableTarget.hashCode());
    }
}
